import { Dimensions, View } from 'react-native';
import React from 'react';
import { useCourseStore } from '../../../store/CourseStore';
import HTML from 'react-native-render-html';

const OverviewSreen = () => {
  const { courseInfo } = useCourseStore();
  return (
    <View>
      {courseInfo.courseInfoVo?.description && (
        <HTML
          source={{ html: courseInfo.courseInfoVo.description }}
          contentWidth={Dimensions.get('window').width}
        />
      )}
    </View>
  );
};

export default OverviewSreen;
